package com.example.pceb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pceb.entity.SchoolEnterpriseCooperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SchoolEnterpriseCooperationMapper extends BaseMapper<SchoolEnterpriseCooperation> {
    
    @Update("UPDATE school_enterprise_cooperation SET " +
            "school_name = #{schoolName}, " +
            "enterprise_name = #{enterpriseName}, " +
            "project_status = #{projectStatus} " +
            "WHERE id = #{id}")
    int updateCooperationInfo(SchoolEnterpriseCooperation cooperation);
}